package com.dms.modules.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_message")
@ApiModel(value = "用户消息", description = "用户消息关联信息")
public class UserMessage {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("消息ID")
    private Long messageId;
    
    @ApiModelProperty("是否已读：0-未读，1-已读")
    private Integer isRead;
    
    @ApiModelProperty("阅读时间")
    private LocalDateTime readTime;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
} 